package com.mew.chess.core.common.handler;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import com.alibaba.nacos.api.config.annotation.NacosProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NacosConfigurationProperties(dataId = "mew-strategy-config.yaml", type = ConfigType.YAML, autoRefreshed = true)
@Data
@ToString
@NoArgsConstructor
public class StrategyConfig {

    @NacosProperty(value = "bonus.fish.max")
    private int fishMax;

    @NacosProperty(value = "bonus.fish.mul")
    private int fishMul;

    @NacosProperty(value = "bonus.qumo.max")
    private int qumoMax;

    @NacosProperty(value = "bonus.qumo.mul")
    private int qumoMul;


    public  long fishGoldMax(){
        return this.fishMax * 10000;
    }

    public long qumoGoldMax(){
        return this.qumoMax * 10000;
    }

}
